<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateAkbusAttendanceAccountingTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('akbus_attendance_accounting', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('license_plate_num')->nullable()->comment('车牌号');
            $table->string('driver')->nullable()->comment('姓名');
            $table->integer('line')->nullable()->comment('线路');
            $table->date('date')->nullable()->comment('日期');
            $table->longText('monthDaily')->nullable()->comment('每天');
            $table->decimal('total_d',10,2)->nullable()->comment('小计');
            $table->string('monthly_cost')->nullable()->comment('加班');
            $table->string('m_air_yihua')->nullable()->comment('修车');
            $table->string('repair')->nullable()->comment('停运');
            $table->string('tire')->nullable()->comment('晚上加班');
            $table->string('remark')->nullable()->comment('备注');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('akbus_attendance_accounting');
    }
}
